.chat-list {
  padding: 10px 12px;
  li {
    padding-left: 10px;
    position: relative;
    margin-bottom: 10px;
  }

}


.userKf {
  .dialogue-txt {
    background-color: #ffeff0;
  }
  .dialogue-name {
    color: #fe5a5f;
    span {
      color: #fe5a5f;
    }
  }
  .dialogue-con {
    &:before {
      border-right: 6px solid #ffe8e9
    }
  }
}

li {
  &.userVip1{
    &.dialogueJoin:before {
      top: 0px;
    }
    .chatFace {
      position: relative;
      border: 1px solid #eba179!important;
      border-radius: 50%;
      &:before {
        position: absolute;
        bottom: 0px;
        right: -4px;
        content: '';
        width: 12px;
        height: 8px;
        z-index: 1;
        background: url("../static/img/tiyan.png") no-repeat center;
        background-size: cover;
      }
    }
    .dialogue-name {
      > em {
        color: #f67324;
      }
      > span {
        color: #e5723a;
      }
    }
    .dialogue-con {
      &:before {
        border-right: 6px solid #ffeade;
      }
      .dialogue-txt {
        background-color: #ffeade !important;
      }
    }
  }
  &.userVip2{
    &.dialogueJoin:before {
      top: 0px;
    }
    .chatFace {
      position: relative;
      border: 1px solid #ffd231!important;
      border-radius: 50%;
      &:before {
        position: absolute;
        bottom: 0px;
        right: -4px;
        content: '';
        width: 11px;
        height: 8px;
        z-index: 1;
        background: url("../static/img/huangjin.png") no-repeat center;
        background-size: cover;
      }
    }
    .dialogue-name {
      > em {
        color: #d76000;
      }
      > span {
        color: #d76000;
      }
    }
    .dialogue-con {
      &:before {
        border-right: 6px solid #fff6e2;
      }
      .dialogue-txt {
        background-color: #fff6e2 !important;
      }
    }
  }
  &.userVip3{
    &.dialogueJoin:before {
      top: 0px;
    }
    .chatFace {
      position: relative;
      border: 1px solid #007ae1!important;
      border-radius: 50%;
      &:before {
        position: absolute;
        bottom: 0px;
        right: -4px;
        content: '';
        width: 12px;
        height: 8px;
        z-index: 1;
        background: url("../static/img/baijin.png") no-repeat center;
        background-size: cover;
      }
    }
    .dialogue-name {
      > em {
        color: #2b74ce;
      }
      > span {
        color: #2b74ce;
      }
    }
    .dialogue-con {
      &:before {
        border-right: 6px solid #f3fbff;
      }
      .dialogue-txt {
        background-color: #f3fbff !important;
      }
    }
  }
  &.userVip4{
    &.dialogueJoin:before {
      top: 0px;
    }
    .chatFace {
      position: relative;
      border: 1px solid #e79027!important;
      border-radius: 50%;
      &:before {
        position: absolute;
        bottom: 0px;
        right: -4px;
        content: '';
        width: 12px;
        height: 8px;
        z-index: 1;
        background: url("../static/img/zuansi.png") no-repeat center;
        background-size: cover;
      }
    }
    .dialogue-name {
      > em {
        color: #424f70;
      }
      > span {
        color: #424f70;
      }
    }
    .dialogue-con {
      &:before {
        border-right: 6px solid #f3fbff;
      }
      .dialogue-txt {
        background-color: #f3fbff !important;
      }
    }
  }
}

.dialogue-name {
  line-height: 20px;
  color: #5f6886;
  span {
    color: #5f6886;
  }
  em {
    cursor: pointer;
  }
}

.dialogue-btn {
  font-size: 14px;
  a {
    display: block;
    color: #74C8F9;
  }
}

.dialogue-txt {
  display: inline-block;
  vertical-align: top;
  background: #f4f8ff;
  border-radius: 8px;
  padding: 4px 10px;
  line-height: 22px;
  max-width: 274px;
  text-align: justify;
  word-break: break-all;
  img {
    max-height: 130px;
  }
  .buleClick {
    color: #1968b1;
    text-decoration: underline;
  }
}

.dialogue-redBag {
  background: #FFE6E1;
  position: relative;
  padding-right: 30px;
  cursor: pointer;
  &:after {
    content: '';
    background: url("./assets/img/red1.png");
    position: absolute;
    width: 20px;
    height: 25px;
    right: 10px;
    top: -8px;
  }
}

.dialogue-tool {
  display: inline-block;
  span {
    display: inline-block;
    vertical-align: top;
    width: 30px;
    line-height: 30px;
    text-align: center;
    margin-left: 10px;
    border-radius: 7px;
    color: #ffffff;
    cursor: pointer;
  }
  .verify {
    background: #62BED0;
  }
  .delete {
    background: #E86A6A;
  }
  .upload {
    background: url("./assets/img/upload.png");
    font-size: 0;
  }
}

li.dialogueMine {
  text-align: right;
  &:before {
    left: auto;
    right: 0;
  }
  .dialogue-txt {
    background: #f7f8fb;
  }
  .dialogue-con {
    &:before {
      left: auto;
      right: -6px;
      border-right: none;
      border-left: 6px solid #f7f8fb;
    }
  }
  .chatFace{
    margin-left: 10px;
    margin-right: 0;
  }
}
.chatBox {
  display: inline-block;
}
.dialogue-con {
  position: relative;
  &:before {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    top: 10px;
    left: -6px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
  }
}
.chatFace {
  width: 30px;
  height: 30px;
  background-color: #ffffff;
  border: solid 1px #e4e4e4;
  display: inline-block;
  border-radius: 50%;
  margin-right: 10px;
  img {
    border-radius: 50%;
  }
}

.dialogue-join {
  color: #66729d;
  span {
    color: #324589;
  }
  width: 267px;
  height: 33px;
  background: url("./assets/img/user_bg@2x.png") no-repeat center;
  background-size: cover;
  line-height: 28px;
  font-size: 12px;
  padding-left: 46px;
  &.joinVIP {
    color: #d09b5f;
    span {
      color: #e88008;
    }
    background: url("./assets/img/VIPuser_bg@2x.png") no-repeat center;
    background-size: cover;
  }
}

li.dialogueJoin {
  &:before {
    top: 13px;
  }
}

.dialogue-gift {
  color: #BD8B1F;
  img {
    display: inline-block;
    height: 60px;
    vertical-align: bottom;
  }
}

li.giftItem {
  &:before {
    top: auto;
    bottom: 4px;
  }
}
